package com.lxk.seckilldemo.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.ToString;

@Getter
@ToString
@AllArgsConstructor
public enum RespBeanEnum {
    //commons
    SUCCESS(200,"SUCCESS"),
    ERROR(500,"server error"),
    //login
    SESSION_ERROR(500169,"未登录"),
    LOGIN_ERROR(500210,"wrong password or username"),
    MOBILE_ERROR(500211,"wrong mobile format"),
    BIND_ERROR(500212,"参数校验异常"),
    //sec kill
    EMPTY_SOCKET(500500,"库存为空"),
    REPATE_ERROR(500501,"重复抢购"),
    REQUEST_ILLEGL(500202,"请求非法"),
    ACCESS_LIMIT_REACHED(500203,"访问过于频繁")
    ;
    private final Integer code;
    private final String message;

}
